<script type="text/javascript">
function demands_picker(){
		var newValue = '';
		var activeRecord = document.getElementById('clients_activerecord');
		if(activeRecord.value!=''){
			var oldValue = window.opener.document.getElementById('_clients_rid').value;
			if(oldValue!=''){
				window.opener.document.getElementById('_clients_rid').value = oldValue+'-'+activeRecord.value;				
			}
			else
			{ 
				window.opener.document.getElementById('_clients_rid').value = activeRecord.value;
			}
			window.close();
		}
} 
</script>
<a href="#" onClick="demands_picker();">
	<img class="button" border="0" align="middle" title="<?php echo $this->lang->line('add');?>"; src="<?php echo base_url(); ?>public/img/icons/goroot.gif"/>
</a>